﻿
namespace MediaPortal.GUI.iPlayer
{
    class Episode : Emission
    {
        public string description, airtime, thumb, views;        

        public Episode() { }

        public Episode(string title, string url)
            : this(title, null, null, url, null) { }

        public Episode(string title, string description, string airtime, string url)
            : this(title, description, airtime, url, null) { }
        
        public Episode(string title, string description, string airtime, string url, string thumb)
        {
            this.title = title;
            this.description = description;
            this.airtime = airtime;
            this.url = url;
            this.thumb = thumb;
        }

        public Episode(string title, string description, string airtime, string url, string thumb, string views, double rating)
            : this(title, description, airtime, url, thumb) 
        { 
            this.views = views;
            this.rating = rating;
        }

        public override string ToString()
        {
            return "title: " + title + ", desc: " + description + ", time: " + airtime + ", url: " + url + ", thumb: " + thumb;
        }
    }
}
